package com.huangpeng.designmodel.builder;

import com.huangpeng.designmodel.entity.Tax;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author huangpeng
 * @Title 模拟一个税率生成器
 * @Package
 * @Date 2020/10/22 11:30
 * @Description 模拟一个税率生成器
 * @Version 1.0
 */
public class TaxBuilder {
    public static List<Tax> generateReceiptList(){
        //直接模拟一堆计算税费规则数据集合
        List<Tax> taxList = new ArrayList<>();
        taxList.add(new Tax(1,"PERSON_INCOME_TAX",new BigDecimal("0.05"),"个人说得税"));
        taxList.add(new Tax(2,"VALUE_ADDED_TAX",new BigDecimal("0.10"),"增值税"));
        taxList.add(new Tax(3,"SURTAX",new BigDecimal("0.20"),"附加税"));
        //...
        return taxList;
    }
}
